package com.atguigu.gulimall.product.controller;

import com.atguigu.gmall.common.constant.RedisConst;
import com.atguigu.gmall.common.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author nicc
 * @version 1.0
 * @className UserIdTestController
 * @date 2022-10-17 00:47
 */
@RestController
public class UserIdTestController {

    @GetMapping("/search/test/abc")
    public Result userIdTest(@RequestHeader(RedisConst.USER_ID_HEADER) Long userId){

        return Result.ok(userId);
    }
}